

project(tfbondlib)

find_package(Qt5 COMPONENTS Core REQUIRED)

file(GLOB_RECURSE  SRCS CONFIGURE_DEPENDS ./*.cpp)
source_group_by_dir(SRCS)

add_library(${PROJECT_NAME} SHARED
     ${SRCS}
)


if(WINDOWS)
    target_compile_options(${PROJECT_NAME} PRIVATE -DS_TFBONDLIB_DLL -fpermissive /wd4251)
elseif (LINUX)
    target_compile_options(${PROJECT_NAME} PRIVATE -DS_TFBONDLIB_DLL -fpermissive)
elseif (MACOS)
    target_compile_options(${PROJECT_NAME} PRIVATE -DS_TFBONDLIB_DLL -fpermissive)
endif()

target_link_libraries(${PROJECT_NAME} PRIVATE Qt::Core core qbprotocol uam bondlib msgcenter qbcalculator)


